//
//  RegisterViewController.h
//  eGifr
//
//  Created by Phien Tram on 8/4/13.
//  Copyright (c) 2013 eGiftr. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DataManager.h"

@protocol RegisterViewDelegate;

@interface RegisterViewController : UIViewController <DataManagerDelegate>

@property (nonatomic, strong) IBOutlet UITextField *nameTextField;
@property (nonatomic, strong) IBOutlet UITextField *emailTextField;
@property (nonatomic, strong) IBOutlet UITextField *passwordTextField;
@property (nonatomic, strong) IBOutlet UITextField *cityTextField;
@property (nonatomic, strong) IBOutlet UIActivityIndicatorView *spinner;

@property (nonatomic, weak) id<RegisterViewDelegate> delegate;
@property (nonatomic, strong) DataManager *dataManager;

- (IBAction)registerButtonOnClicked:(id)sender;
@end

@protocol RegisterViewDelegate <NSObject>

- (void)registerViewSuccessful:(RegisterViewController *)viewController;
@end